<?php
global $references;
$references = array(
    "application" => array(
        "class" => "Pageley_Util_Application",
        "constructor" => array(
            "name" => "$ApplicationName",
            "version" => "$Version",
            "environment" => "development"
        )
    ),

    "dataSource" => array(
        "class" => "Pageley_Gateway_Database_MySql_DataSource",
        "constructor" => array(
            "host" => "localhost",
            "port" => "3306",
            "username" => "webshop_demo",
            "password" => "webshop_demo"
        )
    ),
    
    "gateway" => array(
        "class" => "Pageley_Gateway_Database",
        "constructor" => array(
            "dataSource" => "#{dataSource}",
            "systemSchema" => "webshop_demo"
        )
    ),

    "basicNamespace" => array(
        "class" => "Pageley_Domain_BasicNamespace",
        "constructor" => array(
            "uri" => "urn:basic.pageley.org:1.0-SNAPSHOT",
            "alias" => "basic",
            "schema" => "webshop_demo"
        )
    ),

    "commerceNamespace" => array(
        "class" => "Pageley_Domain_BasicNamespace",
        "constructor" => array(
            "uri" => "urn:commerce.pageley.org:0.1",
            "alias" => "commerce",
            "schema" => "webshop_demo"
        )
    ),
    
    "logFactory" => array(
        "class" => "Pageley_Log_Factory",
        "factoryMethod" => "getInstance",
        "properties" => array(
            "appenders" => array(
                "#{defaultAppender}"
            ),
            "levels" => array(
                "Pageley" => Pageley_Log_Level::$DEBUG
            )
        )
    ),
    
    "defaultAppender" => array(
        "class" => "Pageley_Log_DailyFileAppender",
        "properties" => array (
            "logFilePath" => "/tmp/logs/webshop-demo.log",
            "daysToKeep" => 3
        )
    ),
    
    "fileManager" => array(
        "class" => "Pageley_Domain_BasicFileManager",
        "constructor" => array (
            "directory" => "/var/www/webshop-demo/data/",
            "contextPath" => "/data/"
        )
    )
    
);
